package me.shiqiang.im.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

import java.util.Date;
import java.util.Set;

/**
 * Created by John on 2018/8/3
 */
@RedisHash("LiveRoom")
public class LiveRoom {
    @Id
    private Long id;

    private String name;

    /** 主播 */
    private Long anchorId;
    private String anchorName;
    private String anchorAvatar;

    /** 描述 */
    private String desc;

    private String announcement;

    private String announcementModifyDate;

    private Long announcementModifyUserId;

    /** 管理员 */
    private Set<Long> admins;

    /** 创建时间 */
    private Date createTime = new Date();

    /** 状态 eg:0=待直播 1=直播中 2=禁止直播 */
    private Integer status;

    /** 在线人数 */
    private Long onlineCount;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getAnchorId() {
        return anchorId;
    }

    public void setAnchorId(Long anchorId) {
        this.anchorId = anchorId;
    }

    public String getAnchorName() {
        return anchorName;
    }

    public void setAnchorName(String anchorName) {
        this.anchorName = anchorName;
    }

    public String getAnchorAvatar() {
        return anchorAvatar;
    }

    public void setAnchorAvatar(String anchorAvatar) {
        this.anchorAvatar = anchorAvatar;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Set<Long> getAdmins() {
        return admins;
    }

    public void setAdmins(Set<Long> admins) {
        this.admins = admins;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getAnnouncement() {
        return announcement;
    }

    public void setAnnouncement(String announcement) {
        this.announcement = announcement;
    }

    public String getAnnouncementModifyDate() {
        return announcementModifyDate;
    }

    public void setAnnouncementModifyDate(String announcementModifyDate) {
        this.announcementModifyDate = announcementModifyDate;
    }

    public Long getAnnouncementModifyUserId() {
        return announcementModifyUserId;
    }

    public void setAnnouncementModifyUserId(Long announcementModifyUserId) {
        this.announcementModifyUserId = announcementModifyUserId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getOnlineCount() {
        return onlineCount;
    }

    public void setOnlineCount(Long onlineCount) {
        this.onlineCount = onlineCount;
    }
}
